package xuesm.singleton.lazy;

/**
 * @Author: xuesm
 * @Description: 简单的懒汉式单例
 * @Date: Create in 13:40 2019/3/27
 */
public class LazySimpleSingleton {

	private LazySimpleSingleton(){};

	private static  LazySimpleSingleton lazy = null;

	public synchronized static LazySimpleSingleton getInstance(){
		if (lazy == null){
			lazy = new LazySimpleSingleton();
		}
		return lazy;
	}
}
